<?php
/** Test model: document
 *
 */
namespace Test\modules\Test;

class Model_Employee
    extends \Yz_Model_ActiveRecord
{

    /**
     *
     */
    protected function init()
    {
        debug();
        $dept = $this->selectModel('Dept');
        $d =& $this->__dict__;
        $d['id']     = new \Yz_Model_Field_Id();
        $d['birthdate']   = new \Yz_Model_Field_Date();
        $d['name']   = new \Yz_Model_Field_String();
        $d['dept']  = new \Yz_Model_Field_ForeignKey($dept, array('fieldName' => 'deptId'));
    }


}
